package de.jamm.aws;

import de.hshannover.inform.muehle.strategy.Move;

public class MuehleMove implements Move {
	private FieldSlot fromSlot;
	private FieldSlot toSlot;
	private int toSlotNumber;
	private int fromSlotNumber;
	
	public MuehleMove(int pos_old, int pos_new){
		setFromSlot(pos_old);
		setToSlot(pos_new);
		setFromSlotNumber(pos_old);
		setToSlotNumber(pos_new);	
	}
	
	protected void setFromSlot(int pos_old){
		fromSlot = Konverter.konvertToSlot(pos_old);
	}
	
	protected void setToSlot(int pos_new){
		toSlot = Konverter.konvertToSlot(pos_new);
	}
	@Override
	public FieldSlot fromSlot() {
		// TODO Auto-generated method stub
		return this.fromSlot;
	}

	@Override
	public FieldSlot toSlot() {
		// TODO Auto-generated method stub
		return this.toSlot;
	}

	protected int getFromSlotNumber() {
		return fromSlotNumber;
	}

	protected void setFromSlotNumber(int fromSlotNumber) {
		this.fromSlotNumber = fromSlotNumber;
	}

	protected int getToSlotNumber() {
		return toSlotNumber;
	}

	protected void setToSlotNumber(int toSlotNumber) {
		this.toSlotNumber = toSlotNumber;
	}
}